import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import result from "./components/result"
import query from "./components/query"
import login from "./components/login"
import info from "./components/info"
import content from "./components/content"
import details from"./components/details"

const routes = [{
        path: "/",
        redirect: "/login"
    }, {
        path: "/result",
        component: result,
        meta: {
            title: "结果"
        },
    },
    {
        path: "/query",
        component: query,
        meta: {
            title: "查询"
        },
    },
    {
        path: "/login",
        component: login,
        meta: {
            title: "EMS国际"
        },
    },
    {
        path: "/info",
        component: info,
        meta: {
            title: "EMS要求"
        },
    },
    {
        path: "/content",
        component: content,
        meta: {
            title: "内容"
        },
    },
    {
        path: "/details",
        component: details,
        meta: {
            title: "详情"
        },
    }
]

export default new VueRouter({
    routes,
    linkActiveClass: "active"
})